feat(providers): add SambaNova as an OpenAI-compatible model provider - #358
Draft
snova-kwasia wants to merge 3 commits into
Draft
feat(providers): add SambaNova as an OpenAI-compatible model provider#358snova-kwasia wants to merge 3 commits into
snova-kwasia wants to merge 3 commits into
Conversation
- Added sambanova to registry.py via _compat() helper (OpenAI-compatible API) - Added 6 SambaNova models to matrix.py (Llama 3.3 70B, DeepSeek V3.1/V3.2, MiniMax M2.7, Gemma 4 31B, GPT-OSS 120B) - Uses official endpoint https://api.sambanova.ai/v1 with SAMBANOVA_API_KEY env var
Adds SambaNova Cloud as a first-class model provider, using their OpenAI-compatible API endpoint (api.sambanova.cloud.com/v1). Follows the same _compat pattern as Together AI, Fireworks AI, and OpenRouter. Changes: - registry.py: add _compat() descriptor for sambanova (env: SAMBANOVA_API_KEY, recommended model: Llama 4 Maverick) - matrix.py: add 3 curated SambaNova model entries (Llama 4 Maverick 1M, Qwen3 72B, DeepSeek V3) - logos/sambanova.svg: brand SVG mark (indigo-purple circle + SN monogram) - logos.ts: register the SVG import and add to PROVIDER_ORDER - ProviderSetup.tsx: add console.sambanova.cloud key help URL Users can now connect SambaNova in Settings ▸ Models, just like other OpenAI-compatible resellers.
…ge fix) Removes the duplicate _compat() entry for 'sambanova' that was introduced by a conflicting cherry-pick, keeping the correct .ai endpoint.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Add SambaNova Cloud as a first-class model provider in OpenWorker, matching the existing pattern for other OpenAI-compatible vendors (Together AI, Fireworks, OpenRouter).
Root cause
SambaNova was not yet registered as a provider, so users with SambaNova accounts could not configure it in OpenWorker.
Fix
_compat()descriptor forsambanovausing the OpenAI-compatible API athttps://api.sambanova.ai/v1(verified live). Reads key fromSAMBANOVA_API_KEYenv var; recommended model: Llama 3.3 70B._AGENTIC(tool calling + streaming).sambanovatoPROVIDER_ORDER.console.sambanova.cloudkey help URL to the form.Tests
uv run python3 -m pytest tests/test_providers.py tests/test_provider_verify.py tests/test_provider_router.py -x→ 75 passeduv run python3 -m pytest tests/(959 passed, 1 skipped — bedrock test skipped due to missingbotocore)GET https://api.sambanova.ai/v1/modelswith a real key returns model list correctlysambanovaby name;build_provider_client("sambanova", ...)returns anOpenAIProvidersambanova:*ids returns correctModelEntrywith_AGENTICcapabilitiesConfidence
High — the endpoint was verified live, the implementation follows the exact same
_compatpattern as every other OpenAI-compatible vendor, and all existing tests pass.